Returns the original numbered string with the proper delimiter inserted.
#include <String.au3>
_StringAddComma ( $sStr [, $sSeparator [, $sEnd ]] )
Parameters
$sStr | The string to be converted. |
$sSeperator | Optional: The delimiter to separate the string of numbers. Default=',' |
$sEnd | Optional: The decimal delimiter. Default='.' |
Return Value
Success: | The string delimited. |
Failure: | 0 |
@Error: | 0 = No error. |
1 = Not a numbered string |
Remarks
None.
Related
None.
Example
#include <String.au3>
$nAmount = 89996.31
$sDelimted = _StringAddComma($nAmount)
MsgBox(64, 'Info', $sDelimted)
$nAmt = '38849230'
$sDelim = _StringAddComma($nAmt)
MsgBox(64, 'Info', $sDelim)